import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/standardiztion/standard_home_regulation_entity.dart';

StandardHomeRegulationEntity $StandardHomeRegulationEntityFromJson(Map<String, dynamic> json) {
  final StandardHomeRegulationEntity standardHomeRegulationEntity = StandardHomeRegulationEntity();
  final int? law = jsonConvert.convert<int>(json['law']);
  if (law != null) {
    standardHomeRegulationEntity.law = law;
  }
  final int? rulesAndRegulations = jsonConvert.convert<int>(json['rulesAndRegulations']);
  if (rulesAndRegulations != null) {
    standardHomeRegulationEntity.rulesAndRegulations = rulesAndRegulations;
  }
  return standardHomeRegulationEntity;
}

Map<String, dynamic> $StandardHomeRegulationEntityToJson(StandardHomeRegulationEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['law'] = entity.law;
  data['rulesAndRegulations'] = entity.rulesAndRegulations;
  return data;
}

extension StandardHomeRegulationEntityExtension on StandardHomeRegulationEntity {
  StandardHomeRegulationEntity copyWith({
    int? law,
    int? rulesAndRegulations,
  }) {
    return StandardHomeRegulationEntity()
      ..law = law ?? this.law
      ..rulesAndRegulations = rulesAndRegulations ?? this.rulesAndRegulations;
  }
}
